package com.subang.function.domain;

import com.subang.common.annotation.Excel;
import com.subang.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 申论问题对象 shenlun_questions
 * 
 * @author subei
 * @date 2025-02-26
 */
public class ShenlunQuestions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 题目顺序 */
    @Excel(name = "题目顺序")
    private Long sequence;

    /** 试卷ID */
    @Excel(name = "试卷ID")
    private String paperId;

    /** 问题描述 */
    @Excel(name = "问题描述")
    private String description;

    /** 问题文本 */
    @Excel(name = "问题文本")
    private String stem;

    /** 分值 */
    @Excel(name = "分值")
    private Long score;

    private List<Answer> answers; // 答案数组

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setPaperId(String paperId)
    {
        this.paperId = paperId;
    }

    public String getPaperId()
    {
        return paperId;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setStem(String stem) 
    {
        this.stem = stem;
    }

    public String getStem() 
    {
        return stem;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sequence", getSequence())
            .append("paperId", getPaperId())
            .append("description", getDescription())
            .append("stem", getStem())
            .append("score", getScore())
            .toString();
    }

    public List<Answer> getAnswers() {
        return answers;
    }

    public void setAnswers(List<Answer> answers) {
        this.answers = answers;
    }

    public Long getSequence() {
        return sequence;
    }

    public void setSequence(Long sequence) {
        this.sequence = sequence;
    }

    public static class Answer extends ShenlunReferenceAnswers {
        private String content; // 答案内容
        private String source; // 答案来源

        // Getter 和 Setter 方法
        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getSource() {
            return source;
        }

        public void setSource(String source) {
            this.source = source;
        }


    }
}
